<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title><tiles:getAsString name="title" /></title>
		<tiles:insertAttribute name="meta" flush="false"/>
		<link rel="stylesheet" type="text/css" media="all" href="<c:url value='/styles/${theme}/theme.css'/>" />
        <link rel="stylesheet" type="text/css" media="print" href="<c:url value='/styles/${theme}/print.css'/>" />
		<tiles:insertAttribute name="additionalStyles" flush="false" ignore="true"/>
	</head>
	<body>
		<div id="page">
	        <div id="header" class="clearfix">
	           <tiles:insertAttribute name="header" flush="false"/>
	        </div>
	
	        <div id="content" class="clearfix">
	            <div id="main">
	                
	                <tiles:insertAttribute name="body" flush="false" />
	            </div>
				
	            <c:set var="currentMenu" scope="request">
	            	<tiles:getAsString name="currentMenu" />
	            </c:set>
	            <c:if test="${currentMenu == 'AdminMenu'}">
		            <div id="sub">
		                <menu:useMenuDisplayer name="Velocity" config="cssVerticalMenu.vm" permissions="rolesAdapter">
		                    <menu:displayMenu name="AdminMenu"/>
		                </menu:useMenuDisplayer>
		            </div>
	            </c:if>
	
	            <div id="nav">
	                <div class="wrapper">
	                    <h2 class="accessibility">Navigation</h2>
	                   	<tiles:insertAttribute name="menu" flush="false" />
	                </div>
	                <hr/>
	            </div><!-- end nav -->
	        </div>
	
	        <div id="footer" class="clearfix">
	            <tiles:insertAttribute name="footer" flush="false" />
	        </div>
    	</div>
	</body>
	
	
	
	
</html>